package rabbitmq.consumer;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Slf4j
@RabbitListener(queues = "email_queue")
@Component
public class EmailConsumer {

    @RabbitHandler
    public void smsConsumer(String sms) {
        log.info(">>邮件消费者MSG:{}", sms);
    }
}
